define(function(require, exports, module) {
	"use strict";

	var baseService = require('Base_Service');
	// 控制器名
	exports.controller = "system";

	/* 获取小区列表 */
	exports.getCitys = function(success) {
		var data = {};
		return baseService.get(
			baseService.getApiUrl(exports.controller, "Citys"),
			data,
			function(retval) {
				success && success(retval);
			}
		);
	};
	
	/* 获取准假车型 */
	exports.getDrivingTypes = function(success) {
		var data = {};
		return baseService.get(
			baseService.getApiUrl(exports.controller, "DrivingTypes"),
			data,
			function(retval) {
				success && success(retval);
			}
		);
	};
	
	/* 获取驾校列表 */
	exports.getSchoolList = function(success) {
		var data = {};
		return baseService.get(
			baseService.getApiUrl(exports.controller, "Drivings"),
			data,
			function(retval) {
				success && success(retval);
			}
		);
	};
	
	/* 获取班型 */
	exports.getClassType = function(success) {
		var data = {};
		return baseService.get(
			baseService.getApiUrl(exports.controller, "ClassTypes"),
			data,
			function(retval) {
				success && success(retval);
			}
		);
	};
	
	/**
	 * 获取场地
	 * @param {Object} success
	 */
	exports.getPlaces = function(id,success){
		var data = {
			'drivingID' : id
		};
		return baseService.get(
			baseService.getApiUrl(exports.controller, "Places"),
			data,
			function(retval){
				success && success(retval);
			}
		);
	}
});